
from ultralytics import YOLO

if __name__ == '__main__':

    # Load a model
    model = YOLO(model=r'D:/yolo11/ultralytics-main/ultralytics/weights/best.pt')
    model.predict(source=r'D:/yolo11/ultralytics-main/ultralytics/detect/image',
                  save=True,
                  show=True,
                  conf=0.80,
                  )